from django.conf.urls import url

from news.views import NewsViewset
from . import views


urlpatterns = [
    url(r'^headline-logined/$', views.CategoryView.as_view()),
    url(r'^index/$', NewsViewset.as_view(actions={'get':'list'})),
    url(r'^news/(?P<news_id>\d+)/$', NewsViewset.as_view(actions= {'get':'retrieve'})),


]